package com.region.integral.business_user.obtain.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.region.integral.business_user.obtain.IObtainIntegral;
import com.region.integral.business_user.obtain.dao.delegate.RegulationObjectDelegate;
@Component("business_user_obtainIntegral")
public class ObtainIntegralImpl implements IObtainIntegral {
	@Resource(name="business_obtain_regulationObjectDelegate")
	private RegulationObjectDelegate regulationObjectDelegate;
	@Override
	public boolean byAuthentication(int businessUserid, String authWay) {
		return regulationObjectDelegate.authenticationDelegate(businessUserid, authWay);
	}

	@Override
	public boolean byGoodsCommented(int businessUserid, boolean isbuyer,
			int goodNum, int badNum) {
		return regulationObjectDelegate.goodsCommented(businessUserid, isbuyer, goodNum, badNum);
	}
	@Override
	public boolean byGoodsConfirmed(int businessUserid, int minute) {
		return regulationObjectDelegate.goodsConfirmed(businessUserid, minute);
	}

	@Override
	public boolean byReplyConsultting(int businessUserid) {
		return regulationObjectDelegate.replyConsultting(businessUserid);
	}

	@Override
	public boolean bySellGoods(int businessUserid, double price) {
		return regulationObjectDelegate.sellGoods(businessUserid, price);
	}
	@Override
	public boolean byCheckYes(int businessUserid) {
		return regulationObjectDelegate.checkYes(businessUserid);
	}

}
